<?php
session_start();
//Controllers
require_once ('./Controller/LoginController.php');
require_once ('./Controller/NewPostController.php');
require_once ('./Controller/RegisterController.php');
require_once ('./Controller/PostController.php');
require_once ('./Controller/PostListController.php');
require_once('./Controller/MasterController.php');
//Models
require_once ('./Model/Blogg.php');
require_once ('./Model/Blogglist.php');
require_once ('./Model/CommentHandler.php');
require_once ('./Model/Comment.php');
require_once ('./Model/LoginHandler.php');
require_once ('./Model/RegisterHandler.php');
//Views
require_once ('./View/PageView.php');
require_once ('./View/NavigationView.php');
require_once ('./View/BloggView.php');
require_once ('./View/RegisterView.php');
require_once ('./View/LoginView.php');
require_once ('./View/CommentView.php');
//Common
require_once ('./Common/Dbconfig.php');
require_once ('./Common/Database.php');
require_once ('./Common/Validation.php');


$xhtml = "";
// hämtar instance av mastercntroll 

$mc = new Controller\MasterController();
$xhtml .= $mc->DoControll();
//skriver ut instacen 
// detta är det ända stället i koden som faktiskt skickar ut html till användaren 
echo $xhtml;
?>


